/**
 * @(#) com.kfx.e_news.utils 2015/10/22;
 *
 *
 * Copyright (c), 2009 深圳孔方兄金融信息服务有限公司（Shenzhen kfxiong
 * Financial Information Service Co. Ltd.）
 *
 *
 * 著作权人保留一切权利，任何使用需经授权。
 */
package com.zztl.infiniteBand.util

import android.util.Log
import com.zztl.infiniteBand.BuildConfig

/**
 * @Desc: 日志打印工具类
 *
 *
 * Created by Sye on 2015/10/22.
 */
object LogUtils {

    val LEVEL_VERBOSE = 1
    val LEVEL_DEBUG = 2

    val LEVEL_INFO = 3
    val LEVEL_WARN = 4
    val LEVEL_ERROR = 5

    //TODO 发布生产环境的时候需切换
    //    private static final int LOG_TAG = 6;      //关闭log日志
    private val LOG_TAG = 0        //打开log日志

    fun v(tag: String, msg: String) {
        if (BuildConfig.ISDEBUG) {
            Log.v(tag, msg)
        }
    }

    fun d(tag: String, msg: String) {
        if (BuildConfig.ISDEBUG) {
            Log.d(tag, msg)
        }
    }

    fun i(tag: String, msg: String) {
        if (BuildConfig.ISDEBUG) {

            Log.i(tag, msg)
        }
    }

    fun w(tag: String, msg: String) {
        if (BuildConfig.ISDEBUG) {

            Log.w(tag, msg)
        }
    }

    fun e(tag: String, msg: String) {
        if (BuildConfig.ISDEBUG) {
            Log.e(tag, msg)
        }
    }

}
